Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODStorageUnit


AddValue

The AddValue method adds a value of the specified type to the currently focused property.

ODStorageUnit AddValue (in ODValueType type);
type
The type of value to be added.
return value
A reference to this storage unit.
DISCUSSION
If the focused property does not already contain a value of the specified type, the new value is added and this storage unit is focused on the newly added value. Otherwise, this storage unit is focused on the existing value with the specified value type.

EXCEPTIONS
kODErrIllegalNullValueTypeInput
The specified value type is null.
kODErrInvalidValueType
The specified value type is improperly formed or illegal.
kODErrUnfocusedStorageUnit
This storage unit is not focused on a property.
kODErrZeroRefCount
This storage unit has a reference count of 0.
SEE ALSO
The ODValueType type (page 904).
The ODStorageUnit::Remove method (page 707).
Listing 2-41 on page 100 in OpenDoc Cookbook.
Listing 2-43 on page 103 in OpenDoc Cookbook.
Listing 2-47 on page 110 in OpenDoc Cookbook.
"Creating Properties and Values" on page 274 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help